HipTextureAtlas

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Alias This

frames

Members

Functions

frames
AtlasFrame[string] frames()
Undocumented in source. Be warned that the author may not have intended to support it.
getTexturePath
string getTexturePath()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
loadTexture
bool loadTexture(Image image)
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

readAtlas
HipTextureAtlas readAtlas(ubyte[] data, string atlasPath)
Undocumented in source. Be warned that the author may not have intended to support it.
readFromMemory
HipTextureAtlas readFromMemory(ubyte[] data, string atlasPath, string texturePath)
Undocumented in source. Be warned that the author may not have intended to support it.
readJSON
HipTextureAtlas readJSON(ubyte[] data, string atlasPath, string texturePath)
Undocumented in source. Be warned that the author may not have intended to support it.
readSpritesheet
HipTextureAtlas readSpritesheet(string spritesheetPath, string texturePath)

If no texturePath is given, it will try spritesheetPath<.png> I found a txt file that is parsed as:

readSpritesheet
HipTextureAtlas readSpritesheet(ubyte[] data, string spritesheetPath, string texturePath)
Undocumented in source. Be warned that the author may not have intended to support it.
readXML
HipTextureAtlas readXML(ubyte[] data, string atlasPath, string texturePath)

Used for the following type of XML (Parsed without a real XML parser):

Variables

_frames
AtlasFrame[string] _frames;
Undocumented in source.
atlasPath
string atlasPath;
Undocumented in source.
texture
IHipTexture texture;
Undocumented in source.
texturePaths
string[] texturePaths;
Undocumented in source.

Inherited Members

From HipAsset

_name
string _name;

Use it to insert into an asset pool, alias

_assetID
uint _assetID;

Currently not in use

_typeID
uint _typeID;

Usage inside asset manager

startLoadingTimestamp
float startLoadingTimestamp;

When it started loading

loadTime
float loadTime;

How much time it took to load, in millis

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name(string newName)
Undocumented in source. Be warned that the author may not have intended to support it.
assetID
uint assetID()
Undocumented in source. Be warned that the author may not have intended to support it.
typeID
uint typeID()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()

Action for when the asset finishes loading Proabably be executed on the main thread

startLoading
void startLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
finishLoading
void finishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()

Currently, no AssetID recycle is in mind. It will only invalidate the asset for disposing it on an appropriate time

onDispose
void onDispose()

Use it to clear the engine.

Meta